<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="{{__PUBLIC__}}/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="{{__PUBLIC__}}/Admin/Flat/img/favicon.ico">
	    
	</head>
	<style type="text/css">
		*{
			text-align: center;
			font-size:15px;
		}
		th{
			text-align: center;
		}
	</style>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="100">订单ID</th>
			  <th>订单号</th>
			  <th width="150px">收货人</th>
			  <th >邮编</th>
			  <th width="300px">地址</th>
			  <th >电话</th>
			  <th >价格总计</th>
			  <th>生成时间</th>
			  <th width="100px">备注</th>
			  <th width="100px">发货状态</th>
			  <th width="100">用户ID</th>
			  <th width="300px">操作</th>
			</tr>
			{{foreach from="$orderData" value="$v"}}
			<tr>
				<td>{{$v['oid']}}</td>
				<td>{{$v['number']}}</td>
				<td>{{$v['consignee']}}</td>
				<td>{{$v['postcode']}}</td>
				<td>{{$v['address']}}</td>
				<td>{{$v['phone']}}</td>
				<td>{{$v['totalprice']}}</td>
				<td>{{date('y/m/d',$v['addtime'])}}</td>
				<td>{{$v['remark']}}</td>
				<td>{{$v['status']}}</td>
				<td>{{$v['user_uid']}}</td>
				<td>
					<a href="{{U('Order/orderList',array('oid'=>$v['oid']))}}" class="btn btn-sm btn-primary">订单详情</a>
					<a href="javascript:;" class="btn btn-sm btn-danger" onclick="if(confirm('确定删除吗？？')) location.href='{{U('Order/del',array('oid'=>$v['oid']))}}'">删除</a>
				</td>
			</tr>
			{{endforeach}}
		</table>
	</body>
</html>